package decorator.decorator;

import decorator.cofforbar.Drink;

public class Decorator extends Drink {

    private Drink obj;
    public Decorator(Drink drink) {
        this.obj = drink;
    }

    @Override
    public double cost() {
        return super.getPrice()+obj.cost();
    }

    @Override
    public String getDescription() {
        return super.getDescription()+"------"+obj.getDescription();
    }
}
